package com.rongke.model;


import java.util.Calendar;
import java.util.Date;

public enum ShippingEnum{
    shunfeng("shunfeng","顺丰速递"), shentong("shentong","申通快递"), yuantong("yuantong","圆通快递"), zhongtong("zhongtong","中通速递"),
    yunda("yunda","韵达速递"), tiantian("tiantian","天天快递"), debangwuliu("debangwuliu","德邦物流"), quanfengkuaidi("quanfengkuaidi","全峰快递"),
    huitongkuaidi("huitongkuaidi","百世汇通"), rufengda("rufengda","如风达快递");

    private String code;
    private String logiCom;

    ShippingEnum(String code,String logiCom) {
        this.code=code;
        this.logiCom = logiCom;
    }

    public static String getLogiComNameByCode(String code){
        for (ShippingEnum shippingEnum : values()) {
            if (shippingEnum.getCode().equals(code)) {
                return shippingEnum.getLogiCom();
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getLogiCom() {
        return logiCom;
    }

    public void setLogiCom(String logiCom) {
        this.logiCom = logiCom;
    }

}
